package com.xuanxu.framework.common.pojo;

/**
 * @author XuanXu
 * @version 1.0
 * @date 2024-06-14 21:55
 */
public interface HttpStatusCodeConstant {

    HttpStatusCode SUCCESS = new HttpStatusCode(200, "成功");


    HttpStatusCode BAD_REQUEST = new HttpStatusCode(400, "请求参数不正确");
    HttpStatusCode UNAUTHORIZED = new HttpStatusCode(401, "账号未登录");
    HttpStatusCode FORBIDDEN = new HttpStatusCode(403, "没有该操作权限");
    HttpStatusCode NOT_FOUND = new HttpStatusCode(404, "请求未找到");
    HttpStatusCode METHOD_NOT_ALLOWED = new HttpStatusCode(405, "请求方法不正确");
    HttpStatusCode LOCKED = new HttpStatusCode(423, "请求失败，请稍后重试");
    HttpStatusCode TOO_MANY_REQUESTS = new HttpStatusCode(429, "请求过于频繁，请稍后重试");


    HttpStatusCode INTERNAL_SERVER_ERROR = new HttpStatusCode(500, "系统异常");
    HttpStatusCode NOT_IMPLEMENTED = new HttpStatusCode(501, "功能未实现/未开启");
    HttpStatusCode ERROR_CONFIGURATION = new HttpStatusCode(502, "错误的配置项");
    HttpStatusCode REPEATED_REQUESTS = new HttpStatusCode(900, "重复请求，请稍后重试");


    HttpStatusCode DEMO_DENY = new HttpStatusCode(901, "演示模式，禁止写操作");
    HttpStatusCode UNKNOWN = new HttpStatusCode(999, "未知错误");
}
